package com.lin.java.tool.general.ex;


import com.lin.java.tool.general.enums.OssEnum;

/**
 * @author linjiang
 * @date 2024/7/26
 * @fn
 */
public class CustomFileException extends RuntimeException {

    private Integer code;

    public CustomFileException(OssEnum ossEnum) {
        super(ossEnum.getDesc());
        this.code = ossEnum.getCode();
    }

    public CustomFileException(Integer code, String desc) {
        super(desc);
        this.code = code;
    }
}
